package cn.edu.scau.cmi.mengzhuorong.client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;

public class AdapterOfClassClient extends Application {

	@Override
	public void start(Stage primaryStage) {
		try {
				
			Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/mengzhuorong/adapterOfClass/AdapterOfClass.fxml"));
			Scene scene = new Scene(root,400,400);
			scene.getStylesheets().add(getClass().getResource("/cn/edu/scau/cmi/mengzhuorong/adapterOfClass/application.css").toExternalForm());
			primaryStage.setScene(scene);
			primaryStage.show();
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
	
	public AdapterOfClassClient() {
		Stage stage = new Stage();
		try {
			start(stage);
		}catch(Exception e) {
			e.printStackTrace();
		}
	}
}
